package com.lanou3g.ptp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/*
学生
 */
@Data
@ApiModel(description = "学生类")
public class Student implements Serializable {

    @ApiModelProperty("学生id")
    private Long id;

    @ApiModelProperty("用户类")
    private User user;

    @ApiModelProperty("头像地址")
    private String head;

    @ApiModelProperty("微信openid")
    private String openId;

    @ApiModelProperty("学校id")
    private Long schoolId;

    @ApiModelProperty("学院id")
    private Long collegeId;

    @ApiModelProperty("专业id")
    private Long majorId;

    @ApiModelProperty("班级id")
    private Long clazzId;

    @ApiModelProperty(name = "状态", hidden = true)
    private Integer status;

    @ApiModelProperty(name = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(name = "更新时间", hidden = true)
    private Date updateTime;

    private String collegeName;
    private String majorName;
    private String clazzName;

    @ApiModelProperty("角色（0 admin，1 指导教师，2 院级教师，3 实习单位，4 学生）")
    private Integer role;
}
